package org.bw.bookstore.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.bw.bookstore.common.entity.TbShoppingRecord;
import org.bw.bookstore.common.vo.ShoppingAndBook;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Program:wisdom_bookstore
 * @Description:购物车记录mapper
 * @Author:钟乐
 * @Create:2020-10-22 20:51
 **/

public interface ShoppingCartMapper extends BaseMapper<TbShoppingRecord> {

    /**
    　　* TODO  showShoppingCart--根据用户code查询购物车
    　　* @Param [userInfoCode] 
    　　* @return java.util.List<com.bw.common.entity.TbShoppingRecord>
    　　* @author 钟乐
    　　* @date 2020/10/24 15:22 
    　　*/
    List<TbShoppingRecord> showShoppingCart(@Param("userInfoCode")String userInfoCode);
    
    /**
    　　* TODO  findShoppingRecordByCode--根据
    　　* @Param [userInfoCode, bookDetailedCode] 
    　　* @return com.bw.common.vo.ShoppingAndBook
    　　* @author 钟乐
    　　* @date 2020/10/30 8:53
    　　*/
    ShoppingAndBook findShoppingRecordByCode(@Param("userInfoCode")String userInfoCode, @Param("bookDetailedCode")String bookDetailedCode);


}
